import request from '@/utils/request'

// 查询必读新闻列表
export function listLastnews(query) {
  return request({
    url: '/business/lastnews/list',
    method: 'get',
    params: query
  })
}

// 查询必读新闻详细
export function getLastnews(id) {
  return request({
    url: '/business/lastnews/' + id,
    method: 'get'
  })
}

// 新增必读新闻
export function addLastnews(data) {
  return request({
    url: '/business/lastnews',
    method: 'post',
    data: data
  })
}

// 修改必读新闻
export function updateLastnews(data) {
  return request({
    url: '/business/lastnews',
    method: 'put',
    data: data
  })
}

// 删除必读新闻
export function delLastnews(id) {
  return request({
    url: '/business/lastnews/' + id,
    method: 'delete'
  })
}
